<!--Gordana Pejic 191/01-->
<?php
require '../pages/db.php';
$con=dbConnect("sib");
$result=mysql_query("SELECT * FROM user", $con);

echo '
<div class="admin-members">
     <div class="admin-title">
        <h2>Members</h2>
    </div>

    <div class="admin-content">
        <table border="0" align="center">
            <thead>
                <tr>
                    <th>Member ID</th>
                    <th>Username</th>
                    <th>First name</th>
                    <th>Last name</th>
                    <th>E-mail</th>
                    <th>Phone</th>
                    <th>City</th>
                    <th>Country</th>
                    <th>Verified</th>
                    <th>Registration date</th>
                    <th>Access</th>
                    <th>Delete</th>
                </tr>
            </thead>
            <tbody>';

            while ($row=mysql_fetch_array($result)){
            echo'
                <tr>
                    <td>'.$row["IDUser"].'</td>
                    <td>'.$row['UserName'].'</td>
                    <td>'.$row['FirstName'].'</td>
                    <td>'.$row['LastName'].'</td>
                    <td>'.$row['Email'].'</td>
                    <td>'.$row['Phone'].'</td>
                    <td>'.$row['City'].'</td>
                    <td>'.$row['Country'].'</td>
                    <td>'.$row['VerificationCode'].'</td>
                    <td>'.$row['RegistrationDate'].'</td>
                    <td>'.$row['Access'].'</td>
                    <td><a href="member-d.php?uid='.$row['IDUser'].'">Delete</a></td>
                </tr>';
                }
            echo'
            </tbody>
        </table>


    </div>

</div>';
?>